from django.db import models

# Create your models here.
class Collect(models.Model):
    UID = models.ForeignKey("User.User", on_delete=models.CASCADE)
    PID = models.ForeignKey("Product.Product", on_delete = models.CASCADE)
    #设置唯一性约束
    class Meta:
        unique_together = ("UID", "PID") 
